/** 开发任务管理路由模块 **/

import Layout from '@/layout/index.vue';
import type { AppRoute } from '@/types/route';

const missionRouter: AppRoute[] = [
  {
    path: '/mission',
    component: Layout,
    redirect: '/mission/list',
    name: 'Mission',
    meta: {
      title: '网站维护',
      icon: 'List',
      roles: ['ADMIN', 'USER'] // 所有用户都可以访问，但权限控制在前端组件中实现
    },
    children: [
      {
        path: '/mission/list',
        component: () => import('@/views/mission/index.vue'),
        name: 'MissionList',
        meta: {
          title: '网站维护',
          icon: 'MenuIcon',
          roles: ['ADMIN', 'USER']
        }
      }
    ]
  }
];

export default missionRouter;
